package demo1;

public class Test {

    public static void drawMap(Ishape ishape){
        ishape.draw();
    }

    public static void main(String[] args) {
        Ishape ishape = new Ishape() {
            @Override
            public void draw() { 

            }
        };
        Ishape ishape1 = new Rect();
        Ishape ishape2 = new Cycle();

        drawMap(ishape1);
        drawMap(ishape2);
    }
}
